package com.bang.study.builder;

import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName: App
 * @author: BANG
 * @Date: 2019/10/28 16:10
 * @Version: 1.0
 * @Modified By:
 * @Desc: TODO
 */
@Slf4j
public class App {

    public static void main(String[] args) {
        Hero smy = new Hero.Builder(Profession.WARRIOR, "SMY").
                withHairType(HairType.BALD).withHairColor(HairColor.BLACK).
                withArmor(Armor.CHAIN_MAIL).withWeapon(Weapon.BOW).build();
        log.error(smy.toString());
    }
}
